package ali_oss

import "path/filepath"

func GetUrl(key string) string {
	return "https://cdn.asueeer.com/" + key
}

func IsImage(filename string) bool {
	// 校验图片类型
	fileExt := filepath.Ext(filename)
	if !ImgAllowExts[fileExt] {
		return false
	}
	return true
}
